/**
 * @details: 
 * @brief: 
 * @version: 1.0
 * @author: liuri
 * @Date: 2021-10-05 03:31:51
 * @LastEditors: liuri
 * @LastEditTime: 2021-10-05 03:34:53
 * @FilePath: /TestProject/cPath/vtysh/vty.h
 * @Copyright (C) 2021 liuri. All rights reserved.
 */

#ifndef __VTY_H__
#define __VTY_H__



// 管理当前终端
struct vty 
{
    /* File descripter of this vty. */
    int fd;

    /* output FD, to support stdin/stdout combination */
    int wfd;

    /* Is this vty connect to file or not */
    enum {VTY_TERM, VTY_FILE, VTY_SHELL, VTY_SHELL_SERV} type; // 终端类型

    int node;               /**< 当前所处得节点 */

    int width;              // 窗口宽度
    int height;             // 窗口高度
};


struct vty *vty_new ();


#endif
